<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>Foods Info</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript">
	function del() {
		if (confirm("Are you sure? This can not be roll-back!")) {
			return true;
		} else {
			return false;
		}
	}
       </script>
	</head>
	<body>
		<center>
			<h1>
				foods info:
			</h1>
 <table border="1" width="80%">
   <tr><td>id</td><td>name</td><td>remark</td><td>picture</td></tr>
   <s:iterator value="#request.foods" id="food">
 	 <tr>
 	    <td><s:property value="#food.id"/></td>
 	    <td><s:property value="#food.name"/></td>
 	    <td><s:property value="#food.remark"/></td>
 	    <td><s:property value="#food.picPath"/></td>
 	 </tr>
   </s:iterator>
 </table>           
		</center>
	</body>
</html>
